import React, { Component } from "react";
class PropsChildren extends Component {
  state = {};
  render() {
    return (
      <div>
        <Children1>
          <div>
            <h1>hello</h1>
            <p>test</p>
          </div>
        </Children1>
      </div>
    );
  }
}

export default PropsChildren;

class Children1 extends Component {
  state = {};
  render() {
    return <div>{this.props.children}</div>;
  }
}
